<!DOCTYPE html>
<html  lang="zh_CN" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>供应商订单</title>
    <th:block th:include="~{common/common::commonHead}"/>
</head>
<!-- /Head -->
<!-- Body -->
<body>
<!-- Page Body -->
<div class="page-body">
    <div class="panel panel-primary">
        <div class="panel-heading bg-blue">
            订单信息
        </div>
        <div class="widget-body grid-table">
            <div class="toolbar">
                <div class="toolbar-right">
                    <div class="fl-right">
                        <div class="btn-group" role="group">
                            <button data-click="toggleFilter()" class="btn btn-default text-center">
                                <i class="fa fa-filter fa-fw"></i>
                            </button>
                            <button data-click="refresh('supplierOrderList')" class="btn btn-default">
                                <i class="fa fa-refresh fa-fw"></i>
                            </button>
                            <button data-click="download('supplierOrderList')" class="btn btn-default">
                                <i class="fa fa-download fa-fw"></i>
                            </button>
                        </div>
                    </div>
                </div>
            </div>
            <div id="supplierOrderList"></div>
            <!--筛选-->
            <form class="filter search-content form-horizontal" role="form">
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-xs-4 control-label"> 订单编号 </label>
                        <div class="col-xs-8">
                            <div class="iconic-input right">
                                <input name="id" type="text" class="form-control spinner"
                                       placeholder="请输入订单编号">
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div class="form-group">
                        <label class="col-xs-4 control-label"> 供应商 </label>
                        <div class="col-xs-8">
                            <div class="iconic-input right">
                                <select name="accountSupplier" class="form-control spinner" data-url="org/listSupplier" data-value="-1" data-value-field="id" data-text-field="orgName" >
                                    <option value="-1">全部</option>
                                </select>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="col-xs-12">
                    <button type="button" data-click="hideFilter()" class="btn btn-default pull-right">取消</button>
                    <button type="button" data-click="submitFilter('supplierOrderList')" class="btn btn-blue pull-right">确定</button>
                </div>
            </form>
            <!--筛选-->
        </div><!-- end of panel -->
    </div>

</div>
</body>
<!--  /Body -->
</html>
<script>
    $(function(){
        $("#supplierOrderList").gridTable({
            url: "orderSupplier/pageOrderSupplier",
            columns: [
                {title: "订单号", field: "id"},
                {title: "供应商", field: "supplierName"},
                {title: "监区", field: "area"},
                {title: "已发货数量", field: "totalDeliver",dataType:"number"},
                {title: "商品数量", field: "totalCount",dataType:"number"},
                {title: "订单状态", field: "orderSupplierStatus"},
                {title: "订单总额", field: "totalSettlement",dataType:"decimal"},
                {title: "创建时间", field: "createTime"}
            ],
            idField: "id",
            infoUrl: "order/supplierInfo.html",
            controls:{
                edit:{
                    show:false
                },
                del:{
                    show:false
                }
            }
        });
    });
</script>